'use strict';
/**
 * Created by gu on 16-1-19.
 */

angular.module('metalabPartnerApp').config(['$stateProvider', function ($stateProvider) {
    $stateProvider.state('meta.project', {
        url: '/project',
        abstract: true
    }).state('meta.project.list', {
        url: '/list',
        abstract: true,
        views: {
            'body@meta': {
                templateUrl: 'views/project/list/projectList.html',
                controller: 'ProjectCtrl'
            }
        }
    }).state('meta.project.list.charge', {
        url: '/charge',
        views: {
            'list': {
                templateUrl: 'views/project/list/projectListCharge.html',
                controller: 'ProjectChargeCtrl'
            }
        }
    }).state('meta.project.list.cooperate', {
        url: '/cooperate',
        views: {
            'list': {
                templateUrl: 'views/project/list/projectListCooperate.html',
                controller: 'ProjectCooperateCtrl'
            }
        }
    }).state('meta.project.list.relate', {
        url: '/relate',
        views: {
            'list': {
                templateUrl: 'views/project/list/projectListRelate.html',
                controller: 'ProjectRelateCtrl'
            }
        }
    });
}]);
